//
//  Share.m
//  hellomui
//
//  Created by zhangtao on 15/11/19.
//  Copyright © 2015年 zt.td. All rights reserved.
//

#import "Share.h"

@implementation Share

+(void)WeChatShare{
    [WXApi registerApp:AppID withDescription:@"ztTest"];
    SendMessageToWXReq *req = [[SendMessageToWXReq alloc]init];
    req.text = shareText;
    req.scene = WXSceneSession;  //聊天窗口
    req.bText = YES;
    [WXApi sendReq:req];
    
}

+(void)TencentShare{
    //开发者分享的文本内容
    QQApiTextObject *txtObj = [QQApiTextObject objectWithText:[NSString stringWithFormat:@"%@",SHARE_TEXT]];
    SendMessageToQQReq *req = [SendMessageToQQReq reqWithContent:txtObj];
    //将内容分享到qq
    QQApiSendResultCode sent = [QQApiInterface sendReq:req];
    NSLog(@"~~~~~~~~~~~~~%d",sent);
}



@end
